/**
*
**/

function  mostrar_msg_fireworks(){

	var style = new Fx.Style('ptdi_alertas', 'opacity').set(0);

	var msg = $('ptdi_alertas');
	var fx = msg.effects({fps: 25, wait: false, duration: 500, transition: Fx.Transitions.linear});

	msg.addEvent('show', function() {

		fx.start({

			'opacity': [0,1]

		});
	});

	msg.fireEvent('show');

}

function ocultar_msg_fireworks(){

	var style = new Fx.Style('ptdi_alertas', 'opacity').set(1);

	var msg = $('ptdi_alertas');
	var fx = msg.effects({fps: 25, wait: false, duration: 500, transition: Fx.Transitions.linear});

	msg.addEvent('hide', function() {

		fx.start({

			'opacity': [1,0]

		});
	});

	msg.fireEvent('hide');

}